<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>局部注册</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case13-demo2">
    <my-component></my-component>
</div>
<script type="text/javascript">
    var case13Demo2=new Vue({
        el:"#case13-demo2",
        data:{},
        components:{
            'my-component':{
                template:'<div>局部注册</div>'
            }
        }
    })
</script>
</body>
</html>